package com.wwx.service.impl;

import com.wwx.dao.UserDao;
import com.wwx.dao.impl.UserDaoImpl;
import com.wwx.entity.UserDO;
import com.wwx.service.UserService;

public class UserServiceImpl implements UserService{
	private UserDao userDao=new UserDaoImpl();
	
	@Override
	public UserDO checkUserByPasswordAndUsername(String username, String password) {
		return userDao.checkUserByPasswordAndUsername(username, password);
	}

	@Override
	public boolean addUser(UserDO user) {
		Integer id=userDao.addUser(user);
		if(id!=null&&id>0) {
			return true;
		}
		return false;
	}

}
